package com.ruoyi.hqfinance.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum HqInformStandardPlatformEnum
{
    date("date", "日期"),
    networkName("networkName", "网点"),
    smsRate("smsRate", "短信率"),
    callRate("callRate", "电联率"),
    callTaggedPerformanceRate("callTaggedPerformanceRate", "电联标准履约率"),
    smsTaggedNotificationRate("smsTaggedNotificationRate", "短信标准通知率");

    private final String code;
    private final String info;

    HqInformStandardPlatformEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (HqInformStandardPlatformEnum value : HqInformStandardPlatformEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
